package com.ssrs.platform.priv;

import com.ssrs.framework.extend.annotation.ExtendItem;
import com.ssrs.platform.PlatformPlugin;
import com.ssrs.platform.extend.MenuPrivService;

/**
 * 用户管理菜单权限项
 *
 * @author ssrs
 */
@ExtendItem(
        plugin = PlatformPlugin.class,
        extendService = MenuPrivService.class,
        description = "用户管理权限"
)
public class UserManagerPriv extends AbstractMenuPriv {
    public static final String MENU_ID = "UserManagerPriv";
    public static final String ADD = MENU_ID + ".Add";
    public static final String EDIT = MENU_ID + ".Edit";
    public static final String DELETE = MENU_ID + ".Delete";
    public static final String PRIVRANGE = MENU_ID + ".PrivRange";
    public static final String DISABLE = MENU_ID + ".Disable";
    public static final String ENABLE = MENU_ID + ".Enable";
    public static final String CHANGEPASSWORD = MENU_ID + ".ChangePassword";

    public UserManagerPriv() {
        super(MENU_ID, "用户管理", null);
        addItem(ADD, "添加");
        addItem(EDIT, "编辑");
        addItem(DELETE, "删除");
        addItem(PRIVRANGE, "数据权限");
        addItem(DISABLE, "禁用");
        addItem(ENABLE, "启用");
        addItem(CHANGEPASSWORD, "修改密码");
    }
}
